passwords=file('password.txt','r')
text=passwords.read()
users=text.split()
userPass={}
i=0
while i<len(users):
    userPass[users[i]]=users[i+1]
    i+=2
username=raw_input("What is your username?")
password=raw_input("What is your password?")
if username in userPass and userPass[username]==password:
    print "Access Granted"
else:
    print "Access Denied!"
